﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using DTO;

namespace DAO
{
    public partial class DiemCong_DAO
    {
        public DataTable getDanhSachDiemCong()
        {
            DataProvider dp = new DataProvider();
            DataTable dt = new DataTable();
            dt = dp.ExecuteQuery("sp_getDanhSachDiemCong");
            return dt;
        }
        public DataTable getDiemCongTheoHoadon(float giatriphaitra)
        {
            DataProvider dp = new DataProvider();
            DataTable dt = new DataTable();
            SqlParameter[] Parameter = new SqlParameter[1];

            Parameter[0] = new SqlParameter("@giatriphaitra", giatriphaitra);

            dt = dp.ExecuteQuery("sp_getDiemCongTheoHoadon", Parameter);
            return dt;
        } 
    }
}
